FROM anolis-registry.cn-zhangjiakou.cr.aliyuncs.com/openanolis/anolisos:23-20230704 

# 设置时区
ENV TZ=Asia/Shanghai
RUN yun clean packages & yum update -y & yum install -y wget bind-utils telnet fontconfig dejavu-sans-fonts net-tools
ADD openjdk-21.0.2_linux-x64_bin.tar.gz /runtimes
ENV JAVA_HOME=/runtimes/jdk-21.0.2
ENV JAVA_BIN=$JAVA_HOME/bin
ENV PATH=$PATH:$JAVA_HOME/bin
ENV CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
RUN source /etc/profile
# 增加arthas，如果不需要arthas，则后面的语句没有用了
RUN mkdir /opt/arthas & curl -o /opt/arthas/arthas-boot.jar https://arthas.aliyun.com/arthas-boot.jar
# 占用PID=1
COPY ./tini /sbin/
# Tini is now available at /sbin/tini
ENTRYPOINT ["/sbin/tini", "--"]
